<%@page import="com.windfone.common.Constant"%>
<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>

<%@ taglib uri="/WEB-INF/recommend.tld" prefix="windfone" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>風馳電訊-會員中心</title>
<%@ include file="head.jsp" %>
<%@ include file="headkey.jsp" %>
<script type="text/javascript" src="js/002.js"></script>
<script type="text/javascript" src="js/003.js"></script>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>

<link rel="stylesheet" type="text/css" href="css/index.css"/>
<link rel="stylesheet" type="text/css" href="css/header.css"/>
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" href="css/mc_master.css"/>
<link rel="stylesheet" type="text/css" href="css/memberpwd.css"/>
<style>
#coodoo_Header a
{
	font-size:14px;
	font-weight:bold;
	font-weight:bold;
	font-size:14px;
	color:#FFFFFF;
	text-decoration:none;
}
  
</style>
<style>
html{color:black; background:white;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,blockquote,th,td{margin:0; padding:0;}
body{font-size:12px; font-family:Arial, Helvetica, sans-serif;}
img{border:0px; vertical-align:top;}
a{font-size:12px; text-decoration:none;}
a,a:link,a:visited{color:#353535;}
a:hover{color:#fc6900;}
.fieldS1 .tleft{float:left; width:18px; height:15px; background:url(images/fieldS1_tleft.png);}
.fieldS1 .tright{float:left; width:18px; height:15px; background:url(images/fieldS1_tright.png);}
.fieldS1 .tbg{float:left; height:15px; background:url(images/fieldS1_tbg.png);}
.fieldS1 .tbg .legend{height:15px; background:White; color:#00adf1; font-weight:bold; font-size:14px; padding:0 10px 0 10px;}
.fieldS1 .bg{clear:both; border-left:solid 1px #fde9de; border-right:solid 1px #fde9de; border-bottom:solid 1px #fde9de;}
</style>
 
</head>
<body style="background-color:#000000;"> 
<!-- style="background-color:#000000;" -->
<%@ include file="navigate.jsp" %>





<div class="mcmbox" style="background-color:#FFFFFF;width: 950px;margin:0 auto;">
	<div class="mcmheader"></div>
	
	<div  class="mcmleft">
		<div class="mcmlitem">
			<div class="item1"><a   class="cur" href="memberCenter.action">会员首页</a></div>
		</div>
		
        <div class="mcmlitem">
			<div class="item5"><a   href="memberOrder.action">我的订单</a></div>
		</div>	
		<div class="mcmlitem">
			<div class="item2"><a  href="memberInfo.action">个人信息</a></div>
		</div>		
		<div class="mcmlitem">
			<div class="item3"><a  href="memberPWD.action">修改密码</a></div>
		</div>		
		<%--
		<div class="mcmlitem">
			<div class="item4"><a  href="memberMsg.action">短消息</a></div>
		</div>		
		<div class="mcmlitem">
			<div class="item10"><a href="memberComplaint.action">我的投诉</a></div>
		</div>		
		 --%>
	</div>
	
	<div class="mcmright">
	<div class="mcmminfo">
			<div class="tx"><a href="memberInfo.action"><img src="images/noportrait.jpg" style="border-width: 0px; height: 50px; width: 50px;"/></a></div>
			<dl class="info">
				<dd>您的账号：<s:property value="bean.loginName"/></dd>
			</dl>
			<dl class="info">
				<dd>性别：
				<s:if test="detailBean.sex == 1">男</s:if>
				<s:if test="detailBean.sex == 0">女</s:if>
				<s:if test="detailBean.sex == -1"></s:if>
				</dd>
			</dl>
			<dl class="info">
				<dd>您的等级：<span class="red">
					 <s:if test='bean.level==1'>积分会员</s:if>
					 <s:if test='bean.level==2'>VIP会员</s:if>
					 <s:if test='bean.level==0'>注册会员</s:if>
					 </span></dd>
			</dl>
			<dl class="info">
				<dd>您的积分：<span class="red">0</span></dd>
			</dl>
			<dl class="info1">
				<dd>您的邮箱：<s:property value="detailBean.email"/> </dd>
			</dl>
			<dl class="info1">
				<dd>上次登录时间： <s:date  name='detailBean.loginTime'  format="yyyy-MM-dd HH:mm:ss" /></dd>
			</dl>
			<%--
			<div class="split"></div>
			<dl class="ts">
				<dd class="t1">温馨提示：</dd>
				<dd class="t2">您有 <span class="red">0</span> 条短消息未读</dd>
				<dd class="t2">您的购物车中有 <span class="red">0</span> 件商品未结账</dd>
				<dd class="t2">消费总额为 <span class="red">0.00</span> 元</dd>
				<dd class="t3"><a href="mobileCenter.action"><img src="images/hhzx_img16.png" alt=""/></a></dd>
				<dd class="floatend"></dd>
			</dl>
			--%>
		</div>
		<div class="content" style="width: 701px;">
  
<script>
	function submitFun(){
		var password =  $("#password").val();
		var newpassword =   $("#newpassword").val();
		var configpassword =  $("#configpassword").val();
		if ( password != "" && newpassword  != "" && newpassword == configpassword ){
			$.ajax({
				type:'post',
				url:'changePwd.action',
				data:{password:password,newpassword:newpassword},
				datatype:'json',
				success:function(msg){
		        	var data = eval(msg);
		        	if ( data == 1){
			        	alert("密码更新成功");
		        	}
				}
			}); 
		}
	}
	 

</script>
<div class="mcbox">
	<dl class="fieldS1">
		<dd class="tleft"></dd>
		<dd class="tbg w709"><span class="legend">修改个人密码</span></dd>
		<dd class="tright"></dd>
		<dd class="bg w723_p10">
			<form method="post" action="changePwd.action">
			<table class="tbl1" >
				 <tr>
					<td class="lab">会员账号</td>
					<td class="input"><s:property value="bean.loginName"/></td>
				</tr>
				<tr>
					<td class="lab">当前密码</td>
					<td class="input"><input name="password" maxlength="50" id="password"   type="password"/></td>
				</tr>
				<tr>
					<td class="lab">新密码</td>
					<td class="input"><input name="newpassword" maxlength="50" id="newpassword"   type="password"/></td>
				</tr>
				<tr>
					<td class="lab">确认新密码</td>
					<td class="input"><input name="configpassword" maxlength="50" id="configpassword"   type="password"/></td>
				</tr>
			</table>
			<div class="sub"><input   src="images/memc_img2.png" style="border-width: 0px;" type="image" onclick="submitFun();return false;"/></div>
			</form>
		</dd>
	</dl>
</div>
</div>
	</div>
	<div class="floatend"></div>
<%@ include file="bottom.jsp" %>
</div> 
<div style="width:950px;height: 15">&nbsp;</div>
</body>
</html>
